//
//  ViewController.m
//  NewWaterHome
//
//  Created by Leon He on 2017/5/16.
//  Copyright © 2017年 LipuWater. All rights reserved.
//

#import "ViewController.h"
#import "VCView.h"
#import "PagingScrollView.h"

@interface ViewController (){
    
}

@property (nonatomic, strong) VCView *mainView;
@property (nonatomic, strong) PagingScrollView *pagingView;

@end

@implementation ViewController
@synthesize mainView, pagingView;

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UILabel *titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 20, SCREEN_WIDTH, 44)];
    titleLabel.text = @"新首页";
    titleLabel.font = [UIFont boldSystemFontOfSize:18];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    
//    mainView = [[VCView alloc]initWithFrame:self.view.bounds];
//    [self.view addSubview:mainView];

    pagingView = [[PagingScrollView alloc]initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 416)];
    [self.view addSubview:pagingView];
    
}

@end
